public class Test {
    public static void main(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();

        myLinkedList.addLast(1);
        myLinkedList.addLast(2);
        myLinkedList.addLast(3);
        myLinkedList.addFirst(1);
        myLinkedList.addFirst(2);
        myLinkedList.addFirst(3);

        myLinkedList.display();

        myLinkedList.addIndex(0,99);
        myLinkedList.addIndex(myLinkedList.size(),99);
        myLinkedList.addIndex(4,99);

        myLinkedList.display();

        myLinkedList.addIndex(4,44);

        myLinkedList.display();

        myLinkedList.remove(44);
        myLinkedList.removeAllKey(99);

        myLinkedList.display();

        myLinkedList.clear();
    }
}
